#pragma once

#include "stdafx.h"
#include "vec3.h"
#include "Bounding.h"

#define MAX_DIST_SQR 10000

class CProjectile : public BBox
{
public:
	CProjectile(void);
	~CProjectile(void);
private:
	// Boolean flag to indicate if this projectile is active. If not active, then do not compute/update
	bool m_bActive;
	GLuint list;
public:
	void Draw(void);
	// Update the status of this projectile
	void Update(float delta);
	// Activate the projectile. true == active, false == inactive
	void SetActivate(bool m_bActivate);
	// get status of the projectile. true == active, false == inactive
	bool GetStatus(void);
	// The direction of the projectile
	vec3 dir;
	// The origin of which the projectile is fired
	vec3 origin;
};
